﻿//------------------------------------------------------------------------------
//  Namespace: FVEchartsDemo
//  
//  Function： N/A
//  Name： MainWindowViewModel
//  
//  Ver       Time                     Author
//  0.10      2023/3/3 14:17:10                   Benedict Deng
//
//  Description:
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------

using FruitVentMVVM;
using FVEcharts;
using System;
using System.Collections.Generic;
using System.Text;

namespace FVEchartsDemo
{
    public class MainWindowViewModel : ViewModelBase
    {
        private EchartOption<BarSerie> _option;
        public EchartOption<BarSerie> Option
        {
            get => _option;
            set
            {
                if (_option != value)
                {
                    _option = value;
                    OnPropertyChanged(nameof(Option));
                }
            }
        }

        private EchartOption<PieSerie> _pieOption;
        public EchartOption<PieSerie> PieOption
        {
            get => _pieOption;
            set
            {
                if(_pieOption != value)
                {
                    _pieOption = value;
                    OnPropertyChanged(nameof(PieOption));
                }
            }
        }
    }
}
